//
//  XZ_Factory.m
//  Project_Demo
//
//  Created by Leon on 2018/7/1.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "XZ_Factory.h"
#import "XZ_OperationMantou.h"
#import "XZ_OperationBaozi.h"

@implementation XZ_Factory

+ (XZ_Operation *)operationBreakFast:(Xz_product)breakfastType{
    
    XZ_Operation *operation;
    switch (breakfastType) {
        case XZ_ProductTypeMantou:
            operation = [[XZ_OperationMantou alloc]init];
            break;
            
        case XZ_ProductTypeBaozi:
            operation = [[XZ_OperationBaozi alloc]init];
            break;
            
        default:
            return nil;
            break;
    }
        return operation;
}

@end
